package cn.promonkey.api.menu.entity;import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cn.promonkey.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/** @author ninelock-ai */
@Data
@TableName("menu")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Menu extends BaseEntity { 
  /** 企业ID */
  @TableField(value = "business_id")
  private Long businessId;
  /** 系统id */
  @TableField(value = "system_id")
  private Long systemId;
  /** 菜单ID */
  @TableId(value = "menu_id", type = IdType.AUTO)
  @TableField(value = "menu_id")
  private Long menuId;
  /** 父级ID */
  @TableField(value = "parent_id")
  private Long parentId;
  /** 菜单路径 */
  @TableField(value = "menu_path")
  private String menuPath;
  /** 菜单名称 */
  @TableField(value = "menu_key")
  private String menuKey;
  /** 菜单名称 */
  @TableField(value = "menu_name")
  private String menuName;
  /** 创建用户ID */
  @TableField(value = "user_id")
  private Integer userId;
  /** 类型 */
  @TableField(value = "type")
  private Integer type;
  /** 状态 */
  @TableField(value = "status")
  private Integer status;
  @TableField(exist = false)
  private List<Menu> childList;
}
